package com.dongjiantong.quarantine.enums;

/**
 * Created by mz on 16/11/17.
 *
 */
public enum DjtBreedReportsStatus {

    NO_LICENSE(-3,"不发证"),
    REJECT(-2,"驳回"),
    DISAPPROVE(-1,"不受理"),

    UNCOMMITTED(0,"未提交"),
    STAY_APPROVE(1,"待受理"),
    SURVEYED(2,"已受理"),
    STAY_LICENSE(3,"已勘察"),
    HAS_VERIFY(4,"已审核"),
    HAS_LICENSE(5,"已发证");


    private final Integer value;
    private final String description;

    DjtBreedReportsStatus(Integer value, String description){
        this.value = value;
        this.description = description;
    }

    public static DjtBreedReportsStatus from(Integer value) {
        for (DjtBreedReportsStatus djtBreedReportsStatus : DjtBreedReportsStatus.values()) {
            if (djtBreedReportsStatus.value.equals(value)) {
                return djtBreedReportsStatus;
            }
        }
        return null;
    }

    public Integer value() {
        return this.value;
    }

    @Override
    public String toString() {
        return description;
    }
}
